package artid.com.arttogoa.parser;

import java.io.Serializable;
import org.json.JSONObject;

/**
 * 
*    
* 项目名称：ArtworkArtA   
* 类名称   ：IbeaconActivityInfoParser   
* 类描述   ：ibeacon活动详情实体类+解析
* 创建人   ：耿卫斌   
* 创建时间：2016-11-9 下午4:48:01   
*
 */
public class IbeaconActivityInfoParser extends AppItem implements Serializable{
	private static final long serialVersionUID = 1L;
	private String ibeaconnumber;//艺推编码
	private String ibactivitytitle;//活动名字
	private String ibactivityimage;//活动图片
	private String ibactivityurl;//活动url
	private String ibactivityaddress;//活动地点
	private String ibactivitycontent;//活动描述
	private String type;//类型1个人微站，2自定义
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		ibeaconnumber = obj.optString("ibeaconnumber");
		ibactivitytitle = obj.optString("ibactivitytitle");
		ibactivityimage = obj.optString("ibactivityimage");
		ibactivityurl = obj.optString("ibactivityurl");
		ibactivityaddress = obj.optString("ibactivityaddress");
		ibactivitycontent = obj.optString("ibactivitycontent");
		type = obj.optString("type");
	}
	public String getIbeaconnumber() {
		return ibeaconnumber;
	}
	public void setIbeaconnumber(String ibeaconnumber) {
		this.ibeaconnumber = ibeaconnumber;
	}
	public String getIbactivitytitle() {
		return ibactivitytitle;
	}
	public void setIbactivitytitle(String ibactivitytitle) {
		this.ibactivitytitle = ibactivitytitle;
	}
	public String getIbactivityimage() {
		return ibactivityimage;
	}
	public void setIbactivityimage(String ibactivityimage) {
		this.ibactivityimage = ibactivityimage;
	}
	public String getIbactivityurl() {
		return ibactivityurl;
	}
	public void setIbactivityurl(String ibactivityurl) {
		this.ibactivityurl = ibactivityurl;
	}
	public String getIbactivityaddress() {
		return ibactivityaddress;
	}
	public void setIbactivityaddress(String ibactivityaddress) {
		this.ibactivityaddress = ibactivityaddress;
	}
	public String getIbactivitycontent() {
		return ibactivitycontent;
	}
	public void setIbactivitycontent(String ibactivitycontent) {
		this.ibactivitycontent = ibactivitycontent;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public IbeaconActivityInfoParser() {
		super();
	}
	public IbeaconActivityInfoParser(String ibeaconnumber,
			String ibactivitytitle, String ibactivityimage,
			String ibactivityurl, String ibactivityaddress,
			String ibactivitycontent, String type) {
		super();
		this.ibeaconnumber = ibeaconnumber;
		this.ibactivitytitle = ibactivitytitle;
		this.ibactivityimage = ibactivityimage;
		this.ibactivityurl = ibactivityurl;
		this.ibactivityaddress = ibactivityaddress;
		this.ibactivitycontent = ibactivitycontent;
		this.type = type;
	}
	@Override
	public String toString() {
		return "IbeaconActivityInfoParser [ibeaconnumber=" + ibeaconnumber
				+ ", ibactivitytitle=" + ibactivitytitle + ", ibactivityimage="
				+ ibactivityimage + ", ibactivityurl=" + ibactivityurl
				+ ", ibactivityaddress=" + ibactivityaddress
				+ ", ibactivitycontent=" + ibactivitycontent + ", type=" + type
				+ "]";
	}
}
